﻿using System;

namespace Reactor.Messaging.Attributes
{
    /// <summary>
    /// Base class used for destination attributes.
    /// </summary>
    public abstract class DestinationInformationAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DestinationInformationAttribute"/> class.
        /// </summary>
        protected DestinationInformationAttribute()
        {
            IsTransactional = true;
        }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is transactional. The default value is true.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is transactional; otherwise, <c>false</c>.
        /// </value>
        public bool IsTransactional { get; set; }
    }
}
